<script setup>
import { useRouter } from "vue-router";
import { getAddressApi } from "../../http/api"
import {ref ,reactive,onMounted} from "vue"
const router = useRouter()
const onClickLeft = () => {
    router.go(-1)
}

const getAddress = async() =>{
    const res = await getAddressApi()
    console.log(res);
};

onMounted(()=>{
    getAddress()
})
</script>

<template>
    <div>
        <van-nav-bar title="地址管理" left-arrow right-text="新增地址" @click-left="onClickLeft"
            @click-right="router.push('/newaddress')" />

    </div>
</template>

<style scoped>
</style>
